<nav class="breadcrumb breadcrumb2 w-76p lf-255 edit-nav" id="pathContainer" >
    <i class="Hui-iconfont Hui-iconfont-weizhi"></i>
    <span>您的位置：</span>
    <span class="menuLevel1">扶贫对象管理</span>
    <span class="c-999 en">&gt;</span>
    <span class="c-999 en menuLevel2">自然村管理</span>
    <span class="c-999 en">&gt;</span>
    <span class="c-primary">新增自然村</span>
    <div class="f-r">
        <input class="btn btn-default size-S radius f-r mr-30 mt-5" type="button" id="gobackFromEdit" value="返回">
    </div>
</nav>

<!-- 新增、查看、编辑-弹窗 start-->
<div id="popup">
    <div class="pb-30 pb-30 pt-30" >
        <div class="anchorBox clearfix clearfix2 w-71p" id="nav_item">
            <a class="active">基本情况</a>
            <a>人口信息</a>
            <a>生产生活条件</a>
        </div>
        <div class="mt-10 staticPosition pt-110" id="edit">
            <form class="form form-horizontal responsive" id="editForm" novalidate="novalidate"></form>
        </div>
    </div>
    
</div>
<!-- 新增、查看、编辑-弹窗 end -->

<!-- 新增、查看、编辑-弹窗模板 start -->
<script id="editList" type="text/x-handlebars-template">
    <div class="clearfix basic" id="div0" >
        <input type="hidden" name="id" value="\{{id}}">
        <input type="hidden" name="province" value="河北省">
        <input type="hidden" name="city" value="邯郸市">
        <input type="hidden" name="area.id" id="natureId">
        <h3 class="clearfix h3Title" id="div1">基本情况</h3>
        <div class="inputDiv">
            <label for="">县</label>
            <input type="text" name="cty" readonly="readonly" value="魏县" placeholder="当前登录用户所属">
        </div>
        <div class="row cl">
            <label>乡</label>
            <select class="select cl-select mccms-validate-required" size="1" \{{#if detail}}disabled="disabled"\{{/if}} value="\{{cry}}" id="cry-add" name="c">
                <option value="" selected>请选择</option>
            </select>
            <input type="hidden" value="" name="cry" id="s-cry-add" class="cryHidden">
        </div>
        <div class="row cl">
            <label>村</label>
            <select class="select cl-select mccms-validate-required" size="1" \{{#if detail}}disabled="disabled"\{{/if}} value="\{{name}}" id="natrueName-add" name="n">
                <option value="" selected>请选择</option>
            </select>
            <input type="hidden" value="" name="name" id="s-natrueName-add">
        </div>
        <div class="inputDiv">
            <label for="">自然村编码</label>
            <input class="mccms-validate-required" type="text" name="code" \{{#if detail}}disabled="disabled"\{{/if}} readonly value="\{{code}}" placeholder="请输入自然村编码" id="code">
        </div>
        <div class="inputDiv">
            <label for="">自然村名称</label>
            <input type="text" class="mccms-validate-required" name="village" \{{#if detail}}disabled="disabled"\{{/if}} value="\{{village}}" placeholder="请输入自然村名称" id="village">
        </div>

        <div class="inputDiv">
            <label for="">组号</label>
            <input type="text" name="groupNumber" \{{#if detail}}disabled="disabled"\{{/if}} value="\{{groupNumber}}" placeholder="请输入组号">
        </div>
        <div class="inputDiv">
            <label for="">负责人</label>
            <input type="text" class="mccms-validate-required" name="fpeople" \{{#if detail}}disabled="disabled"\{{/if}} value="\{{fpeople}}" placeholder="请输入负责人姓名">
        </div>
        <div class="inputDiv">
            <label for="">联系方式</label>
            <input type="text" class="mccms-validate-required" name="contact" \{{#if detail}}disabled="disabled"\{{/if}} value="\{{contact}}" placeholder="请输入联系方式">
        </div>
        <div class="inputDiv">
            <label>村属性</label>
            <input type="text" class="mccms-validate-required" name="nature" \{{#if detail}}disabled="disabled"\{{/if}} \{{#if nature}}value="\{{nature}}"\{{/if}} value="非贫困村" readonly>

        </div>
    </div>
    <div class="clearfix populationInfo" id="div1">
        <h3 class="clearfix h3Title" id="div2">人口信息</h3>
        <div class="inputDiv">
            <label for="">总户数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="total" placeholder="请输入总户数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{total}}" disabled="disabled" 
            \{{else}}
                value="\{{#if total}}\{{total}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}>
        </div>
        <div class="inputDiv">
            <label for="">贫困户数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="poor" placeholder="请输入贫困户数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{poor}}"
            \{{else}}
                value="\{{#if poor}}\{{poor}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}} disabled>
        </div>
        <div class="inputDiv">
            <label for="">低保户数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="lowHouse" placeholder="请输入低保户数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{lowHouse}}" disabled="disabled" 
            \{{else}}
                value="\{{#if lowHouse}}\{{lowHouse}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}>
        </div>
        <div class="inputDiv">
            <label for="">五保户数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="fiveHouse" placeholder="请输入五保户数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{fiveHouse}}" disabled="disabled" 
            \{{else}}
                value="\{{#if fiveHouse}}\{{fiveHouse}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}>
        </div>
        <div class="inputDiv">
            <label for="">总人口数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="totalNumber" placeholder="请输入总人口数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{totalNumber}}" disabled="disabled" 
            \{{else}}
                value="\{{#if totalNumber}}\{{totalNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
        <div class="inputDiv">
            <label for="">贫困人口数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="poorNumber" placeholder="请输入贫困人口数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{poorNumber}}"
            \{{else}}
                value="\{{#if poorNumber}}\{{poorNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}} disabled> 
        </div>
        <div class="inputDiv">
            <label for="">低保人口数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="lowNumber" placeholder="请输入低保人口数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{lowNumber}}" disabled="disabled" 
            \{{else}}
                value="\{{#if lowNumber}}\{{lowNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
        <div class="inputDiv">
            <label for="">五保人口数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="fiveNumber" placeholder="请输入五保人口数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{fiveNumber}}" disabled="disabled" 
            \{{else}}
                value="\{{#if fiveNumber}}\{{fiveNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
        <div class="inputDiv">
            <label for="">少数民族人口数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="lessNumber" placeholder="请输入少数民族人口数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{lessNumber}}" disabled="disabled" 
            \{{else}}
                value="\{{#if lessNumber}}\{{lessNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
        <div class="inputDiv">
            <label for="">妇女人口数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="womanNumber" placeholder="请输入妇女人口数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{womanNumber}}" disabled="disabled" 
            \{{else}}
                value="\{{#if womanNumber}}\{{womanNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
        <div class="inputDiv">
            <label for="">残疾人口数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="remnantNumber" placeholder="请输入残疾人口数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{remnantNumber}}" disabled="disabled" 
            \{{else}}
                value="\{{#if remnantNumber}}\{{remnantNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
        <div class="inputDiv">
            <label for="">劳动力数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="labourNumber" placeholder="请输入劳动力数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{labourNumber}}" disabled="disabled" 
            \{{else}}
                value="\{{#if labourNumber}}\{{labourNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
        <div class="inputDiv">
            <label for="">外出务工人数</label>
            <input type="number" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="gooutNumber" placeholder="请输入外出务工人数"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{gooutNumber}}" disabled="disabled" 
            \{{else}}
                value="\{{#if gooutNumber}}\{{gooutNumber}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
    </div>
    <div class="clearfix LivingConditions LivingConditions2" id="div2">
        <h3 class="clearfix h3Title" id="div3">生产生活条件</h3>
        <div class="inputDiv">
            <label for="">到行政村距离（公里）</label>
            <input type="text" class="mccms-validate-required mccms-validate-digits mccms-validate-min?0" name="distance" placeholder="请输入到行政村距离（公里）"
            \{{#mccmsShowIfEqual detail '1'}}
                value="\{{distance}}" disabled="disabled" 
            \{{else}}
                value="\{{#if distance}}\{{distance}}\{{else}}0\{{/if}}"
            \{{/mccmsShowIfEqual}}> 
        </div>
        <div class="row cl">
            <label>到行政村是否通沥青（水泥）路</label>
            <select class="select innset-input mccms-validate-required" size="1" \{{#if detail}}disabled="disabled"\{{/if}} name="road" value="\{{road}}" id="road">
                <option value="" selected>请选择</option>
                <option value="是">是</option>
                <option value="否">否</option>
            </select>
        </div>
        <div class="row cl">
            <label>是否通生产用电</label>
            <select class="select innset-input mccms-validate-required" size="1" \{{#if detail}}disabled="disabled"\{{/if}} name="electrics" value="\{{electrics}}" id="electric">
                <option value="" selected>请选择</option>
                <option value="是">是</option>
                <option value="否">否</option>
            </select>
        </div>
        <div class="row cl">
            <label>是否通生活用电</label>
            <select class="select innset-input mccms-validate-required" size="1" \{{#if detail}}disabled="disabled"\{{/if}} name="lifes" value="\{{lifes}}" id="life">
                <option value="" selected>请选择</option>
                <option value="是">是</option>
                <option value="否">否</option>
            </select>
        </div>
        <div class="row cl position-div">
            <label>是否通宽带</label>
            <select class="select innset-input mccms-validate-required" size="1" \{{#if detail}}disabled="disabled"\{{/if}} name="broadbands" value="\{{broadbands}}" id="broadband">
                <option value="" selected>请选择</option>
                <option value="是">是</option>
                <option value="否">否</option>
            </select>
        </div>
    </div>
    <div class="keepBtnBox" \{{#if detail}}hidden\{{/if}}>
        <button type="button" class="btn btn-secondary size-L sub_btn">保 存</button>
    </div>
</script>

<script>
    new naturalVillageEdit();
</script>


